from django.shortcuts import render_to_response 
from django.template import RequestContext
from django.http import HttpResponse
from models import Artigo

def artigo(request, artigo_id):
    artigo = Artigo.objects.get(id = artigo_id)
    
    #return HttpResponse(artigo.conteudo)
    return render_to_response('blog/artigo.html', locals(), context_instance = RequestContext(request))
    
    